SysStats class Null safety

CPU 和内存统计信息

Constructors

SysStats({int? cpuCores, double? cpuAppUsage, double? cpuTotalUsage, double? memoryUsage, int? fullMemory, int? totalMemoryUsage, int? freeMemory, double? memoryRatio, double? totalMemoryRatio})
const

Properties

cpuAppUsage → double?
当前应用的 CPU 使用率,取值范围为 [0, 1]
final
cpuCores → int?
当前系统 CPU 核数
final
cpuTotalUsage → double?
当前系统的 CPU 使用率,取值范围为 [0, 1]
final
freeMemory → int?
系统当前空闲可分配内存 (MB)
final
fullMemory → int?
设备的内存大小(MB)
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
memoryRatio → double?
当前应用的内存使用率 (%)
final
memoryUsage → double?
当前应用的内存使用量(MB)
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
totalMemoryRatio → double?
系统内存使用率 (%)
final
totalMemoryUsage → int?
系统已使用内存(MB)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited